package com.justech.eat.service.impl;

import com.justech.eat.entity.SysUser;
import com.justech.eat.mapper.mysql.SysUserMapper;
import com.justech.eat.repository.SysUserRepository;
import com.justech.eat.service.SysUserService;
import com.justech.eat.vo.PageDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: eat-service
 * @description:
 * @author: feifei.li
 * @create: 2020-06-01 17:26
 **/
@Deprecated
@Service
public class SysUserServiceImpl implements SysUserService {
    @Autowired
    SysUserRepository sysUserRepository;
    @Autowired
    SysUserMapper sysUserMapper;

    /**
     * 根据工号查询用户
     *
     * @param jobNumber
     * @return
     */
    @Override
    public SysUser get(String jobNumber) {
        return null;
    }

    /**
     * 根据全局id查询用户
     *
     * @param sourceNo
     * @return
     */
    @Override
    public SysUser getBySourceNo(String sourceNo) {
        return null;
    }

    /**
     * 分页获取用户
     *
     * @param sysUser
     * @param page
     * @param size
     * @return
     */
    @Override
    public PageDto<SysUser> getPage(SysUser sysUser, Long page, int size) {
        return null;
    }

    /**
     * 获取所有在职用户
     *
     * @return
     */
    @Override
    public List<SysUser> findAllInJob() {
        return sysUserMapper.findInJob();
    }
}
